<template >
    <div>
        <h3>{{title}}分类</h3>

        <slot :games="games"></slot>

    </div>
</template>
<script>
export default {
    name:'Category',
    data() {
        return {
            games:['红色警戒','穿越火线','劲舞团','超级玛丽'],
        }
    },
}
</script>
<style  scoped>
    div{
        width: 200px;
        background-color: aqua;
    }
    h3{
        background-color: coral;
    }
    
</style>